package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserBaseIntegralDao;
import com.fqgj.xjd.user.entity.UserBaseIntegralEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: zhaoyang
 * Date: 2019-06-21
 * Time: 14:57:50.029
 */
@Repository
public class UserBaseIntegralDaoImpl extends AbstractBaseMapper<UserBaseIntegralEntity> implements UserBaseIntegralDao {


    @Override
    public UserBaseIntegralEntity selectByUserCode(String userCode) {
        Map<String, Object> map = new HashMap<>();
        map.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("selectUserIntegralByUserCode"), map);
    }
}